package com.yonyou.mapper;

import com.yonyou.entity.User;

import java.util.List;

/**
 * mapper接口不能直接由spring创建对象
 * 1、接口无法注册到beanDefinition
 * 2、标记@Component 只能将class交给spring，spring根据反射创建对象
 */
public interface UserMapper {

    User selectById(Long id);

}
